#ifndef CAMHANDLERTHREAD_H
#define CAMHANDLERTHREAD_H

#include <OpenThreads/Thread>
#include <OpenThreads/Mutex>
#include <OpenThreads/Barrier>
#include "CamHandler.h"
#include "Moveenums.h"

class CamHandlerThread : public OpenThreads::Thread {
		
public:
	CamHandlerThread(CamHandler * camHandler, const int action, const int sleep);
	~CamHandlerThread();
	void reset();
	virtual void run();
	void quit();

private:
	bool _quitflagC;
	CamHandler* _camHandler;
	int _actionC, _sleepC;
	OpenThreads::Mutex _quitmutexC;
};
#endif
